package main

import (
	"fmt"
	"os"
	"bufio"
	"strings"
	"io"
)

func main(){
	var (
		fileName = "./1.txt"
		file *os.File
		err error
	)
	file, err = os.Open(fileName)
	defer file.Close()
	if err != nil {
		fmt.Println(err)
		return
	}
	fmt.Println(11111)
	reader := bufio.NewReader(file)
	count := 0
	for {
		line, _, err := reader.ReadLine()

		if err != nil {
			fmt.Println(err)
			if err == io.EOF{
				fmt.Println(err)
				break
			}
			break
		}
		content := strings.TrimSpace(string(line))
		handle(content)
		count += 1
	}
	fmt.Println(count)
	fmt.Println("done")
}

func handle(line string){
}